package com.grass.appointment.activity;

import android.view.View;
import com.androidx.p013lv.base.Constance;
import com.androidx.p013lv.base.p015ui.BaseActivity;
import com.grass.appointment.C2694R;
import com.grass.appointment.databinding.ActivityDynamicPlayBinding;
import com.gyf.immersionbar.ImmersionBar;

public class DynamicPlayActivity extends BaseActivity<ActivityDynamicPlayBinding> {
    private String img;
    private String url;

    @Override // com.androidx.p013lv.base.p015ui.BaseActivity
    public int setLayout() {
        return C2694R.C2699layout.activity_dynamic_play;
    }

    /* access modifiers changed from: protected */
    @Override // com.androidx.p013lv.base.p015ui.BaseActivity
    public void initView() {
        super.initView();
        this.url = getIntent().getStringExtra("videoUrl");
        this.img = getIntent().getStringExtra("imgUrl");
        ((ActivityDynamicPlayBinding) this.binding).player.setUp(Constance.m3u8SavePath, false, "");
        ((ActivityDynamicPlayBinding) this.binding).player.startPlayLogic();
        ((ActivityDynamicPlayBinding) this.binding).imgBack.setOnClickListener(new View.OnClickListener() {
            /* class com.grass.appointment.activity.DynamicPlayActivity.View$OnClickListenerC27111 */

            public void onClick(View view) {
                DynamicPlayActivity.this.finish();
            }
        });
    }

    /* access modifiers changed from: protected */
    @Override // com.androidx.p013lv.base.p015ui.BaseActivity
    public void initImmersionBar() {
        super.initImmersionBar();
        ImmersionBar.with(this).titleBar(((ActivityDynamicPlayBinding) this.binding).toolbar).init();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.fragment.app.FragmentActivity
    public void onPause() {
        ((ActivityDynamicPlayBinding) this.binding).player.onVideoPause();
        super.onPause();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.fragment.app.FragmentActivity
    public void onResume() {
        ((ActivityDynamicPlayBinding) this.binding).player.onVideoResume();
        super.onResume();
    }
}
